<template>
  <div id="app">
    <div class="content">
       <keep-alive>
          <router-view v-if="$route.meta.keepAlive">
          </router-view>
        </keep-alive>
        <router-view v-if="!$route.meta.keepAlive"></router-view>
    </div>
  </div>
</template>

<script>
export default {
  name: 'app',
  mounted () {
    const script = document.createElement('script')
    script.src = 'https://s23.cnzz.com/z_stat.php?id=1275463178&web_id=1275463178'
    script.language = 'JavaScript'
    document.body.appendChild(script)
  },
  watch: {
    '$route' () {
      if (window._czc) {
        let location = window.location
        let contentUrl = location.pathname + location.hash
        let refererUrl = '/'
        window._czc.push(['_trackPageview', contentUrl, refererUrl])
      }
    }
  }
}
</script>
<style>
 #app{
   width:7.5rem;
   margin:0 auto !important;
 }
  .loading-wrap{
    position:fixed;
    left:0;
    top:0;
    width:100%;
    height:100%;
    z-index:9999;
    background:#fff;
  }
  #nprogress .spinner{
    display:none !important;
  }
  #nprogress .bar{
    background:#00cf05 !important;
  }
  .van-modal{
    width: 7.5rem;
    left: 50%;
    transform: translateX(-50%);
  }
  .van-image-preview{
    width:7.5rem !important;
    left:50% !important;
    transform: translateX(-50%);
  }
</style>

